package com.example.recyclerimageload.recyclerview_group.util;

import android.content.Context;

import com.example.recyclerimageload.recyclerview_group.bean.HotelEntity;
import com.google.gson.Gson;

public class JsonUtils {

    public static HotelEntity analysisJsonFile(Context context, String fileName){
        String content = FileUtils.readJsonFile(context,fileName);
        Gson gson = new Gson();
        HotelEntity entity = gson.fromJson(content, HotelEntity.class);
        return  entity;

    }
}
